package com.example.paper.http.logUtils;

import android.content.SharedPreferences;

import com.example.paper.app.App;

public class SpUtils {

    //sp存储
    private static String name = "netcatch";

    //sp存储
    public static void saveData(String key,String value){
        SharedPreferences sp = App.getInstance().getApplicationContext().getSharedPreferences(name,0);
        //提交
        sp.edit().putString(key,value).commit();
    }

    //拿
    public static String readData(String key){
        SharedPreferences sp = App.getInstance().getApplicationContext().getSharedPreferences(name, 0);
        return sp.getString(key,"");
    }

}
